/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.brucexx.assistx.search.search;

import com.brucexx.assistx.util.StringUtil;
import java.io.Serializable;

/**
 *
 * @author zhao.xiong
 */
public class SearchVO implements Serializable {

    private String fileName;
    private String content;
    private String filepath;
    private String fileTime;
    private double score;
    private boolean attached = false;

    /**
     * @return the fileName
     */
    public String getFileName() {
        return fileName;
    }

    /**
     * @param fileName the fileName to set
     */
    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    /**
     * @return the content
     */
    public String getContent() {
        return content;
    }

    /**
     * @param content the content to set
     */
    public void setContent(String content) {
        this.content = content;
    }

    /**
     * @return the filepath
     */
    public String getFilepath() {
        return filepath;
    }

    /**
     * @param filepath the filepath to set
     */
    public void setFilepath(String filepath) {
        this.filepath = filepath;
    }

    /**
     * @return the attached
     */
    public boolean isAttached() {
        return attached;
    }

    /**
     * @param attached the attached to set
     */
    public void setAttached(boolean attached) {
        this.attached = attached;
    }

    @Override
    public String toString() {
        return "hitScore[" + score + "]" + StringUtil.LINE_END + "fileName[" + fileName + "]"
                + StringUtil.LINE_END + "filepath[" + filepath + "]" + StringUtil.LINE_END + "content[" + content + "]"
                + StringUtil.LINE_END + "isattaced[" + attached + "]";
    }

    /**
     * @return the score
     */
    public double getScore() {
        return score;
    }

    /**
     * @param score the score to set
     */
    public void setScore(double score) {
        this.score = score;
    }

    /**
     * @return the fileTime
     */
    public String getFileTime() {
        return fileTime;
    }

    /**
     * @param fileTime the fileTime to set
     */
    public void setFileTime(String fileTime) {
        this.fileTime = fileTime;
    }
}
